<template>
  <div @click="$router.push(`/article/${detailitem.id}`)">
    <div class="detailitem">
      <div class="imgparent">
        <img :src="detailitem.img" alt="" style="width:100%" />
        <div class="bottom">
          <div class="icon-codeigniter"><span class="video">1015</span></div>
          <div class="icon-discourse">
            <span class="comment">{{ detailitem.commentlen ? detailitem.commentlen : 66 }}</span>
          </div>
        </div>
      </div>
      <p>{{ detailitem.name }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: ['detailitem']
}
</script>

<style lang="less" scoped>
.detailitem {
  p {
    font-size: 11.999px;
    padding: 2.999px 0;
  }
  .imgparent {
    position: relative;
    width: 46.667vw;
    height: 26.111vw;
    .bottom {
      position: absolute;
      padding: 0 2.778vw;
      display: flex;
      justify-content: space-between;
      left: 0;
      right: 0;
      bottom: 0.556vw;
      color: #fff;
      background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent);
    }
  }
}
</style>
